Skip to content

Conversation

@wolfreak99
Copy link

modification of map_backgrounds to work for scripts

{
var i, ds_map;
ds_map = argument0;
for (i = 0; script_exists(i); i += 1) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last time I've checked, the resource ID's are not necessarily contiguous. For example if you create three scripts, then delete the middle one, the id's will be [0, 2]. Has this changed since?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No it's still like that.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be worth a check, maybe something like "haven't seen an existing script in the last 1024 iterations, let's just call it a day and return".

@gmlscripts gmlscripts force-pushed the master branch 3 times, most recently from b7c4452 to 63a857c Compare June 26, 2022 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants